home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 26 / Cream of the Crop 26.iso / program / ddj0897.zip / RCSC.ZIP / PACKAGES / CAS.ZIP / RELOC.DOC < prev    next >
Text File  |  1996-10-24  |  939b  |  23 lines

  1.                  8051 RELOCATER, notes on use.
  2.  
  3. (0) COMMAND LINE, INPUT FORMAT
  4.    This is a simple utility to relocate hex files.  A typical use would be
  5. the following: you assemble a stand-alone program for address 0.  However,
  6. when loading the program in preparation to blast it into EPROM, you have to
  7. upload it to memory address 4000 and then blast it to address 0. 
  8.  
  9.    The typical conmmand line for this utility is:
  10.  
  11.                      reloc Offset File
  12.  
  13. For example:
  14.                      reloc 4000 debug
  15.  
  16. will take the file debug.hex and generate the output in debug.hx.  The input
  17. file must be suffixed in .hex, and the output will always have the .hx suffix.
  18.  
  19.    The offset must be a 4-digit hexadecimal number.  The source file's
  20. addresses are shifted by the amount indicated by this offset.  Address
  21. calculations are done modulo 10000 hex, so an offset of c000 will effectively
  22. shift addresses at or above 4000 back by 4000.
  23.